import Vue from "vue";
import VueRouter from "vue-router";
import mapView from "../views/basicMap/home";
import staticMap from "../views/staticMap/index";
import gifMap from "../views/gifMap/index";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: mapView,
  },
  {
    path: "/staticmap",
    name: "staticmap",
    component: staticMap,
  },
  {
    path: "/gifmap",
    name: "gifmap",
    component: gifMap,
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
